<!--
	URL/show/:title/hobbies	
	app/views/hobbies/show.html.erb 
	The show resume-hobbies view - displays the hobbies part for a resume (:title) of a user 
	controller: hobbies, action: show
-->

<link rel="stylesheet" type="text/css" href="/stylesheets/resume_common.css" />
<link rel="stylesheet" type="text/css" href="/stylesheets/hobbies/show.css" />	

<div class="heading">
	<h3> Hobbies </h3>
	<div class="links">
		<%= link_to 'Edit', '/edit/'+@resume.title+'/hobbies' %>
		<%= link_to 'Remove', '/destroy/'+@resume.title+'/hobbies', :confirm => 'Are you sure?', :method => :delete %>	
	</div>	
</div>

<% if @hobby %>
	<table class="hobbies_table">
		<tr>
			<td class="column1">	Hobbies 					</td>
			<td class="column2 hobbies_text">	<%=h @hobby.hobbies_text %>	</td>
		</tr>
	</table>
<% else %>
	<p>
		No hobby data.
		<%= link_to 'Add', '/new/'+@resume.title+'/hobbies' %>		
	</p>	
<% end #if-else %>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="/javascripts/resume_common.js"></script>
<script type="text/javascript" src="/javascripts/hobbies/show.js"></script>

